package org.example.salarysystem.pojo;


import java.math.BigDecimal;

public class SalaryRecord {
    private Integer recordId;    // 工资记录编号
    private Integer teacherId;   // 发放给谁（教师编号）
    private Integer itemId;      // 发放什么项目
    private String month;        // 发放月份（格式如 2024-01）
    private BigDecimal amount;   // 实际发放金额

    public SalaryRecord() {
    }

    public SalaryRecord(Integer recordId, Integer teacherId, Integer itemId, String month, BigDecimal amount) {
        this.recordId = recordId;
        this.teacherId = teacherId;
        this.itemId = itemId;
        this.month = month;
        this.amount = amount;
    }

    /**
     * 获取
     * @return recordId
     */
    public Integer getRecordId() {
        return recordId;
    }

    /**
     * 设置
     * @param recordId
     */
    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    /**
     * 获取
     * @return teacherId
     */
    public Integer getTeacherId() {
        return teacherId;
    }

    /**
     * 设置
     * @param teacherId
     */
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    /**
     * 获取
     * @return itemId
     */
    public Integer getItemId() {
        return itemId;
    }

    /**
     * 设置
     * @param itemId
     */
    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    /**
     * 获取
     * @return month
     */
    public String getMonth() {
        return month;
    }

    /**
     * 设置
     * @param month
     */
    public void setMonth(String month) {
        this.month = month;
    }

    /**
     * 获取
     * @return amount
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 设置
     * @param amount
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String toString() {
        return "SalaryRecord{recordId = " + recordId + ", teacherId = " + teacherId + ", itemId = " + itemId + ", month = " + month + ", amount = " + amount + "}";
    }
}
